package com.astar.mapper;

import com.astar.entity.CustomDetail;
import com.astar.entity.TransactionDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 交易明细记录  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-01-31
 */

@Repository
public interface TransactionDetailMapper extends BaseMapper<TransactionDetail> {

    @Select("select * from transaction_detail de INNER JOIN unified_user_info inf on de.user_id = inf.ID")
    List<CustomDetail> selectAll();

}
